Data storage system and associated method

ABSTRACT

A data storage system includes: a processing circuit arranged to receive a data bytes from a host; a calculating circuit arranged to generate a cyclic redundancy check code according to a logical block address, and combine the cyclic redundancy check code and the data bytes to be a data sector; and an encoding circuit arranged to encode the data sector to generate an error checking and correcting code, and combine the data sector and the error checking and correcting code to be a storing data.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to a data storage system and an associated method, and more particularly, to a data format capable of reducing the amount of stored data, and an associated method.

2. Description of the Prior Art

Development of technology requiring more and more data to be written into or read from a flash memory means that the capacity of flash memories needs to be increased. When a host is going to store a data byte into a flash memory, a control circuit of the flash memory will store the data byte with a fixed format, generally comprising at least four portions. A first portion is the data byte, the second portion is a logical block address (LBA) from the host, the third portion is a cyclic redundancy check (CRC) code, and the fourth portion is an error checking and correcting code, wherein the LBA, the CRC code and the error checking and correcting code are not data from the host, but are still written into flash memories. When a large amount of data is to be stored into a flash memory, all these non-data portions may occupy a lot of storage space of the flash memory. Hence, how to effectively store a data byte into a flash memory or read the data byte from the flash memory is an issue to be solved in this field.

SUMMARY OF THE INVENTION

An objective of the present invention is to provide a data format that can reduce data storage, and an associated method.

A first embodiment of the present invention provides a data storage system comprising a processing circuit, a calculating circuit and an encoding circuit. The processing circuit is arranged to receive a first data byte from a host. The calculating circuit is arranged to generate a first cyclic redundancy check code according to a first logical block address (LBA), and combine the first cyclic redundancy check code and the first data byte into a first data sector. The encoding circuit is arranged to encode the first data sector to generate a first error checking and correcting code, and combine the first data sector and the first error checking and correcting code into a first storage data.

A second embodiment of the present invention provides a data storage system which comprises a processing circuit, a lookup table (LUT), and a decoding circuit. The processing circuit is arranged to receive a first LBA from a host. The LUT is arranged to store a storage address mapping to the first LBA. The decoding circuit is arranged to utilize the storage address to read storage data from a storing circuit, and decode a first data sector in the storage data according to an error checking and correcting code in the storage data, and the first data sector at least comprises a second LBA.

A third embodiment of the present invention provides a data storing method. The method comprises: receiving a first data byte from a host; generating a first cyclic redundancy check code according to a first logical block address (LBA), and combining the first cyclic redundancy check code and the first data byte into a first data sector; and encoding the first data sector to generate a first error checking and correcting code, and combining the first data sector and the first error checking and correcting code into a first storage data.

A fourth embodiment of the present invention provides a data storing method. The method comprises: receiving a first logical block address (LBA) from a host; utilizing a (lookup table) LUT to store a storage address that maps to the first LBA; utilizing the storage address to read storage data from a storing circuit; and decoding a first data sector in the storage data according to an error checking and correcting code in the storage data, wherein the first data sector at least comprises a second LBA.

These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a diagram illustrating a data storage system according to a first embodiment of the present invention.

FIG. 2 is a diagram illustrating respective formats of a data byte, a data sector and a storage data according to a first embodiment of the present invention.

FIG. 3 is a diagram illustrating a data storage system according to a second embodiment of the present invention.

FIG. 4 is a diagram illustrating respective formats of a data byte, a data sector and a storage data according to a second embodiment of the present invention.

FIG. 5 is a flowchart illustrating a data storing method according to a first embodiment of the present invention.

FIG. 6 is a flowchart illustrating a data storing method according to a second embodiment of the present invention.

DETAILED DESCRIPTION

Certain terms are used throughout the description and following claims to refer to particular components. As one skilled in the art will appreciate, manufacturers may refer to a component by different names. This document does not intend to distinguish between components that differ in name but not function. In the following description and in the claims, the terms “include” and “comprise” are used in an open-ended fashion, and thus should not be interpreted as a close-ended term such as “consist of”. Also, the term “couple” is intended to mean either an indirect or direct electrical connection. Accordingly, if one device is coupled to another device, that connection may be through a direct electrical connection, or through an indirect electrical connection via other devices and connections.

FIG. 1 is a diagram illustrating a data storage system 100 according to a first embodiment of the present invention. The data storage system 100 comprises a host interface 102, a processing circuit 104, a calculating circuit 106, a plurality of registers 108 and 110, a lookup table (LUT) 112, an encoding circuit 114, and a storing circuit 116. The data storage system 100 may be a flash memory storage system or any other type of storage system. The data storage system 100 is connected to a host (not shown in the figure), and the host may be arranged to access the data storage system 100. For better understanding, the data storage system 100 may be viewed as a data writing system. Therefore, the host interface 102 is arranged to receive signals from the host or transmit signals to the host. The processing circuit 104 may be a central processing circuit (CPU) or a controlling circuit. The processing circuit 104 is arranged to receive a data byte DATA and a corresponding logical block address LBA from the host. The calculating circuit 106 may be an end-to-end path protection circuit. The calculating circuit 106 is arranged to generate a cyclic redundancy check code CRC according to the logical block address LBA, and combine the cyclic redundancy check code CRC and the data byte DATA into a data sector DATA_CRC. The encoding circuit 114, which is connected to the storing circuit 116, is arranged to encode the data sector DATA_CRC generated by the calculating circuit 106 to generate an error checking and correction code ECC, and combine the data sector DATA_CRC and the error checking and correction code ECC into the storage data DATA_CRC_ECC. The storing circuit 116, which may be a flash memory, is arranged to store the storage data DATA_CRC_ECC generated by the encoding circuit 114.

Since it may take a long time for the encoding circuit 114 to encode the data sector DATA_CRC, and the data sector DATA_CRC from the calculating circuit 106 may not be immediately encoded by the encoding circuit 114, the data sector DATA_CRC may be temporarily stored in the different registers of the data storage system 100, i.e. the registers 108, 110 illustrated in FIG. 1. The registers 108, 110 may be dynamic random access memories (DRAMs) coupled between the calculating circuit 106 and the encoding circuit 114. The present invention is not limited to the number of registers. The two registers 108 and 110 shown in FIG. 1 are merely for illustrative purposes. The data sector DATA_CRC may be temporarily stored in the registers 108 or 110, and then be sent to the encoding circuit 114. Further, the data sector DATA_CRC may be directly sent to the encoding circuit 114 from the calculating circuit 106.

When the data sector DATA_CRC is written into the registers 108 or read from the registers 108 or 110, to ensure the correctness of the data byte DATA in the data sector DATA_CRC, the calculating circuit 106 (or the processing circuit 104) will check the correctness of the data sector DATA_CRC according to the cyclic redundancy check code CRC in the data sector DATA_CRC. Via the cyclic redundancy check code CRC, the data storage system 100 may ensure that the data written into the registers 108 or 110 is consistent with that read from the registers 108 or 110. For example, the calculating circuit 106 may determine whether the cyclic redundancy check code CRC in the data sector DATA_CRC written into the register 108 is equal to the cyclic redundancy check code CRC in the data sector DATA_CRC read from the register 108. If yes, this means that the data byte DATA in the data sector DATA_CRC read from the register 108 is not distorted; otherwise, an error has occurred in the data byte DATA in the data sector DATA_CRC read from the register 108, so the data storage system 100 will have to re-read the data or debug errors.

The LUT 112 shown in FIG. 1 is arranged to store a storage address ADD which maps to the logical block address LBA, wherein the storage address ADD is a physical address of the storing circuit 116, and the storage address ADD is arranged to store the storage data DATA_CRC_ECC. When the data storage system 100 receives a data byte DATA and a corresponding logical block address LBA from the host, the processing circuit 104 will find the storage address ADD corresponding to the logical block address LBA through checking the LUT 112, and write the encoded data byte (i.e. DATA_CRC_ECC) into the storage address ADD of the storing circuit 116. Note that the LUT 112 of the present invention may exist in an independent memory, a memory of the processing circuit 104, or a memory of other components.

According to the embodiment of the present invention, when the calculating circuit 106 combines the cyclic redundancy check code CRC and the data byte DATA into a data sector DATA_CRC, the calculating circuit 106 does not combine the logical block address LBA into the data sector DATA_CRC. Compared with the related art methods, this embodiment may reduce the number of bit of the data sector DATA_CRC, so that the storage space occupied by the encoded storage data DATA_CRC_ECC will be smaller and the data capacity of the storing circuit 116 is raised. For example, if the size of each data byte DATA is 512 bytes, the size of each logical block address LBA is 4 bytes, and the size of each cyclic redundancy check code CRC is 2 bytes, 4 bytes are saved for each storage data DATA_CRC_ECC in the storing circuit 116. Note that, although the calculating circuit 106 in this embodiment does not combine the logical block address LBA into the data sector DATA_CRC, since the cyclic redundancy check code CRC is generated according to the logical block address LBA, the cyclic redundancy check code CRC in this embodiment substantially includes the information of the logical block address LBA. In this way, when the cyclic redundancy check code CRC and the data byte DATA are combined into a data sector DATA_CRC, the data sector DATA_CRC will include the information of the logical block address LBA. Compared with the related art methods, this embodiment does not directly store the logical block address LBA, but rather encodes/integrates/combines the data storing the logical block address LBA into the cyclic redundancy check code CRC instead. Hence, this embodiment may reduce the space occupied by storing the logical block address LBA.

FIG. 2 is a diagram illustrating respective formats of a data byte DATA, a data sector DATA_CRC and a storage data DATA_CRC_ECC according to a first embodiment of the present invention. The block 202 represents the data byte DATA received by the host interface 102. The block 204 represents the data sector DATA_CRC outputted from the calculating circuit 106, wherein the data sector DATA_CRC comprises the data byte DATA and the cyclic redundancy check code CRC, but does not include the logic block address LBA. The block 206 represents the storage data DATA_CRC_ECC outputted by the encoding circuit 114, wherein the storage data DATA_CRC_ECC comprises the data byte DATA, the cyclic redundancy check code CRC and the error checking and correction code ECC. Note that when the host interface 102 receives a data byte DATA and a corresponding logic block address LBA, the processing circuit 104 may write the logic block address LBA into the LUT 112 at the same time, and map the logic block address LBA to a storage address ADD. Next, the encoding circuit 114 may write the outputted storage data DATA_CRC_ECC into the storage address ADD of the storing circuit 116.

FIG. 3 is a diagram illustrating a data storage system 300 according to a second embodiment of the present invention. The data storage system 300 comprises a storing circuit 302, a decoding circuit 304, a processing circuit 306, a first checking circuit 308, a register 310, a second checking circuit 312, a host interface 314 and a LUT 316. Compared with the embodiment shown in FIG. 1, the data storage system 300 in this embodiment may be viewed as a data reading system. More specifically, the data storage system 300 is arranged to read the data written by the data storage system 100. When the processing circuit 306 receives a controlling signal from a host (not shown) through the host interface 314 to read storage data DATA_CRC_ECC′ of a logical block address LBA′ from the storing circuit 302, the processing circuit 306 may find a storage address ADD′ mapping to the logical block address LBA′ in the LUT 316 in advance. Next, the decoding circuit 304 may read the storage data DATA_CRC_ECC′ from the storing circuit 302 according to the storage address ADD′. According to the operations of the data storage system 100 mentioned above, the format of the storage data DATA_CRC_ECC′ may comprise three portions, wherein the first portion is a data byte DATA′, the second portion is a cyclic redundancy check code CRC′, and the third portion is an error checking and correcting code ECC′. Note that the format of the storage data DATA_CRC_ECC′ read by the decoding circuit 304 does not include a logical block address. This is because the logical block address has been integrated into the cyclic redundancy check code CRC′ as illustrated in FIG. 4.

FIG. 4 is a diagram illustrating respective formats of a data byte DATA′, a data sector DATA_CRC′ and a storage data DATA_CRC_ECC′ according to a second embodiment of the present invention. The block 402 represents the storage data DATA_CRC_ECC′ read by the decoding circuit 304, wherein the storage data DATA_CRC_ECC′ comprises a data byte DATA′, a cyclic redundancy check code CRC′ and an error checking and correcting code ECC′. The block 404 represents the data sector DATA LBA CRC′ outputted by the first checking circuit 308, wherein the data sector DATA LBA CRC′ comprises a data byte DATA, a logical block address LBA′ and a cyclic redundancy check code CRC′. The block 406 represents the data byte DATA′ outputted by the second checking circuit 312.

After the storage data DATA_CRC_ECC′ is read by the decoding circuit 304, the decoding circuit 304 may use the error checking and correcting code ECC′ to check the correctness of the read storage data DATA_CRC_ECC′. If the error checking and correcting code ECC′ can be used to decode the data byte DATA′ and the cyclic redundancy check code CRC′, this means that the read storage data DATA_CRC_ECC′ is correct data. If the error checking and correcting code ECC′ cannot be used to decode the data byte DATA′ and the cyclic redundancy check code CRC′, this means that there are errors in the read storage data DATA_CRC_ECC′. If there are errors in the storage data DATA_CRC_ECC′, the data storage system 300 will reread or debug the storage data.

Note that, if the storage data DATA_CRC_ECC′ is correct, the decoding circuit 304 will decode and output a logical block address LBA″ according to the cyclic redundancy check code CRC′. Furthermore, the decoding circuit 304 may remove the error checking and correcting code ECC′. After the error checking and correcting code ECC′ is removed, the data comprising the logical block address LBA″, data byte DATA′ and cyclic redundancy check code CRC′ is transmitted to the first checking circuit 308.

When the first checking circuit 308 receives the logical block address LBA″, data byte DATA′ and the cyclic redundancy check code CRC′ from the decoding circuit 304, the first checking circuit 308 may determine whether the logical block address LBA″ received from the encoding circuit 304 is equal to the logical block address LBA′ received from the processing circuit 306. If the logical block address LBA″ received from the encoding circuit 304 is equal to the logical block address LBA′ received from the processing circuit 306, this means that the data read from the storing circuit 302 by the decoding circuit 304 is the data needed by the host. The first checking circuit 308 may thereby determine the logical block address LBA″, the data byte DATA′ and the cyclic redundancy check code CRC′ from the decoding circuit 304 as correct. Furthermore, when the first checking circuit 308 receives the logical block address LBA″, data byte DATA′ and the cyclic redundancy check code CRC′ from the decoding circuit 304, the first checking circuit 308 may also check whether the cyclic redundancy check code CRC′ is correct, in order to determine whether the received data is distorted. When the logical block address LBA″ and the cyclic redundancy check code CRC′ from the decoding circuit 304 are determined to be correct, the first checking circuit 308 may combine the data byte DATA′, the logical block address LBA′ (i.e. LBA″) and the cyclic redundancy check code CRC′ into the data sector DATA_LBA_CRC′ as illustrated in FIG. 4, and output the data sector DATA_LBA_CRC′ to the register 310.

When the second checking circuit 312 receives the data sector DATA_LBA_CRC′ from the register 310, the second checking circuit 312 may determine whether an error occurs in the data outputted by the register 310 according to the cyclic redundancy check code CRC′ in the data sector DATA_LBA_CRC′. When the second checking circuit 312 determines that the data outputted by the register 310 is correct, the second checking circuit 312 may remove the cyclic redundancy check code CRC′ and the logical block address LBA′ in the data sector DATA_LBA_CRC′, and output the data byte DATA′ (i.e. the data byte shown in the block 406 of FIG. 4) to the host interface 314.

As can be seen from the operation of the data storage system 300 above, the first checking circuit 308 checks whether each logical block address LBA″ in the storage data DATA_CRC_ECC′ read by the storing circuit 302 is equal to the logical block address LBA′ received by the processing circuit 306, which reduces the silent error rate. The second checking circuit 312 may also check whether the data outputted by the register 310 is correct according to the cyclic redundancy check code CRC′ in the data sector DATA_LBA_CRC′, which reduces the probability of 1-bit errors. Therefore, the storage data formats provided by the present invention may effectively save storage space of the storing circuit, and reduce errors which occur when storing, reading and transmitting data.

Note that, although the data writing operation and data reading operation are described in the data storage system 100 of FIG. 1 and the data storage system 300 of FIG. 3, respectively, the present invention is not limited thereto. In practice, the data storage system 100 and the data storage system 300 may be integrated as one data accessing system. For example, when the data storage system 100 and the data storage system 300 are integrated as one data accessing system, the host interface 102 and the host interface 314 may be jointly viewed as one host interface, the processing circuit 104 and the processing circuit 306 may be jointly viewed as one processing circuit, the register 108 and the register 310 may be viewed as one register, the storing circuit 116 and the storing circuit 302 may be jointly viewed as one storing circuit, and the LUT 112 and the LUT 316 may be jointly viewed as one LUT. Since one skilled in the art can easily understand operations of such a data storage system after reading operations of the data storage system 100 and the data storage system 300 mentioned above, a detailed description is omitted here for brevity.

In the above paragraphs, the data storage system 100 and the data storage system 300 are illustrated as different components, to stress that the functions thereof are different. In some modifications, the data storage system 100 and the data storage system 300 can be integrated as one or more chips. This also belongs to the scope of the present invention.

The operations of the data storage system 100 may be summarized by FIG. 5. FIG. 5 is a flowchart illustrating a data storing method 500 according to a first embodiment of the present invention. If the result is substantially the same, the steps are not required to be executed in the exact order shown in FIG. 5. The method 500 is as follows.

Step 502: Receive a data byte DATA and a logical block address LBA from a host;

Step 504: Generate a cyclic redundancy check code CRC according to the logical block address LBA, and combine the cyclic redundancy check code CRC and the data byte DATA into a data sector DATA_CRC;

Step 506: Utilize the LUT 112 to store a storage address ADD that maps to the logical block address LBA;

Step 508: Utilize at least one register to temporarily store the data sector DATA_CRC;

Step 510: Check the correctness of the data byte DATA according to the cyclic redundancy check code CRC in the data sector DATA_CRC;

Step 512: Encode the data sector DATA_CRC to generate an error checking and correcting code ECC, and combine the data sector DATA_CRC and the error checking and correcting code ECC into a storage data DATA_CRC_ECC; and

Step 514: Write the storage data DATA_CRC_ECC into a storage address ADD of the storing circuit 116.

The operations of the data storage system 100 may be summarized by FIG. 6. FIG. 6 is a flowchart illustrating a data storing method 600 according to a second embodiment of the present invention. If the result is substantially the same, the steps are not required to be executed in the exact order shown in FIG. 6. The method 600 is as follows.

Step 602: Receive a logical block address LBA′ from a host;

Step 604: Utilize the LUT 316 to find a storage address ADD′ mapping to the logical block address LBA′;

Step 606: Utilize the storage address ADD′ to read a storage data DATA_CRC_ECC′ from the storing circuit 302;

Step 608: Decode a data sector in the storage data DATA_CRC_ECC′ according to an error checking and correcting code ECC′ in the storage data DATA_CRC_ECC′, wherein the data sector comprises at least one logical block address LBA′;

Step 610: Determine whether the logical block address LBA′ is equal to the logical block address LBA″, to determine the correctness of the storage data DATA_CRC_ECC′, and determine the correctness of the storage data DATA_CRC_ECC′ according to a cyclic redundancy check CRC′;

Step 612: Combine the data byte DATA′, logical block address LBA′ and cyclic redundancy check code CRC′ into a data sector DATA_LBA_CRC′;

Step 614: Utilize at least one register to temporarily store the data sector DATA_LBA_CRC′;

Step 616: Check the correctness of the data byte DATA′ according to the cyclic redundancy check code CRC′ in the data sector DATA_LBA_CRC′; and

Step 618: Remove the logical block address LBA′ and the cyclic redundancy check code CRC′ in the data sector DATA_LBA_CRC′ to output the data byte DATA′ to the host interface 314, in order to transmit the data byte DATA′ to the host.

In summary, the storage data format provided by the embodiment of the present invention does not store a logical block address from a host into the storing circuit, thus reducing the size of the storage data. Furthermore, the data storage system of the present invention may check whether each logic block address in the storage data read from the storing circuit is equal to the logic lock address received by the processing circuit, which can reduce static errors. The data storage system of the present invention may also refer to the cyclic redundancy check code in the data sector to check whether the data output by the register is correct or not, to reduce the probability of 1-bit errors. Therefore, the storage data formats provided by the present invention may effectively reduce occupied storage space, and may reduce errors which occur when storing, reading and transmitting data.

Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims. 

What is claimed is:
 1. A data storage system, comprising: a processing circuit, arranged to receive a first data byte from a host; a calculating circuit, arranged to generate a first cyclic redundancy check code according to a first logical block address (LBA), and combine the first cyclic redundancy check code and the first data byte into a first data sector; and an encoding circuit, arranged to encode the first data sector to generate a first error checking and correcting code, and combine the first data sector and the first error checking and correcting code into a first storage data.
 2. The data storage system of claim 1, wherein when the calculating circuit combines the first cyclic redundancy check code and the first data byte into the first data sector, the calculating circuit does not combine the first LBA into the first data sector.
 3. The data storage system of claim 1, wherein the processing circuit further receives the first LBA.
 4. The data storage system of claim 1, further comprising: at least one register, coupled between the calculating circuit and the encoding circuit, the register arranged to temporarily store the first data sector; wherein when the register temporarily stores the first data sector, the calculating circuit further checks correctness of the first data sector according to the first cyclic redundancy check code in the first data sector.
 5. The data storage system of claim 1, further comprising: a storing circuit, arranged to store the first storage data.
 6. The data storage system of claim 5, further comprising: a lookup-table (LUT), arranged to store a first storage address that maps to the first LBA; wherein the first storage address is a physical address of the storing circuit, and the first storage address is arranged to store the first storage data.
 7. The data storage system of claim 6, further comprising: a decoding circuit; wherein the processing circuit further refers to a second LBA to find a second storage address stored in the LUT, the decoding circuit utilizes the second storage address to read a second storage data from the storing circuit, the decoding circuit further refers to a second error checking and correcting code in the second storage data to decode a second data sector in the second storage data, and the second data sector comprises at least a third LBA.
 8. The data storage system of claim 7, further comprising: a first checking circuit, arranged to determine whether the second LBA is equal to the third LBA, to determine correctness of the second storage data.
 9. The data storage system of claim 8, wherein the second data sector further comprises a second cyclic redundancy check code, and the first checking circuit further refers to the second cyclic redundancy check code to determine correctness of the second storage data.
 10. The data storage system of claim 9, wherein the second data sector further comprises a second data byte, and the first checking circuit combines the second data byte, the third LBA and the second cyclic redundancy check code into a second data sector.
 11. The data storage system of claim 10, further comprising: a second checking circuit, arranged to determine correctness of the second data byte according to the second cyclic redundancy check code in the second data sector, and remove the third LBA in the second data sector, in order to output the second data byte to the host.
 12. A data storage system, comprising: a processing circuit arranged to receive a first LBA from a host; a LUT arranged to store a storage address mapping to the first LBA; and a decoding circuit arranged to utilizes the storage address to read storage data from a storing circuit, and decode a first data sector in the storage data according to an error checking and correcting code in the storage data, wherein the first data sector at least comprises a second LBA.
 13. The data storage system of claim 12, further comprising: a first checking circuit, arranged to determine whether the first LBA is equal to the second LBA, to determine correctness of the storage data.
 14. The data storage system of claim 13, wherein the first data sector further comprises a cyclic redundancy check code, and the first checking circuit determines correctness of the storage data according to the cyclic redundancy check code.
 15. The data storage system of claim 14, wherein the first data sector further comprises a data byte, and the first checking circuit combines the data byte, the second LBA and the cyclic redundancy check code into a second data sector.
 16. The data storage system of claim 15, further comprising: a second checking circuit, arranged to determine correctness of the data byte according to the cyclic redundancy check code in the second data sector, and remove the second LBA in the second data sector, in order to output the data byte to the host.
 17. A data storing method, comprising: receiving a first data byte from a host; generating a first cyclic redundancy check code according to a first logical block address (LBA), and combining the first cyclic redundancy check code and the first data byte into a first data sector; and encoding the first data sector to generate a first error checking and correcting code, and combining the first data sector and the first error checking and correcting code into a first storage data.
 18. The data storing method of claim 17, wherein the first LBA is not combined into the first data sector.
 19. The data storing method of claim 17, further comprising: receiving the first LBA from the host.
 20. The data storing method of claim 17, further comprising: utilizing at least one register to temporarily store the first data sector; and checking correctness of the first data sector according to the first cyclic redundancy check code in the first data sector.
 21. The data storing method of claim 17, further comprising: utilizing a storing circuit to store the first storage data.
 22. The data storing method of claim 21, further comprising: utilizing a lookup table (LUT) to store a first storage address that maps to the first LBA; wherein the first storage address is a physical address of the storing circuit, and the first storage address is arranged to store the first storage data.
 23. The data storing method of claim 22, further comprising: finding a second storage address from the LUT according to a second LBA; utilizing the second storage address to read a second storage data from the storing circuit; and decoding a second data sector in the second storage data according to a second error checking and correcting code in the second storage data, wherein the second data sector at least comprises a third LBA.
 24. The data storing method of claim 23, further comprising: determining whether the second LBA is equal to the third LBA, to determine correctness of the second storage data.
 25. The data storing method of claim 24, wherein the second data sector further comprises a second cyclic redundancy check code, and the method further comprises: determining correctness of the second storage data according to the second cyclic redundancy check code.
 26. The data storing method of claim 25, wherein the second data sector further comprises a second data byte, and the method further comprises: combining the second data byte, the third LBA and the second cyclic redundancy check code into a second data sector.
 27. The data storing method of claim 26, further comprising: determining correctness of the second data byte according to the second cyclic redundancy check code in the second data sector; and removing the third LBA in the second data sector, in order to output the second data byte to the host.
 28. A data storing method, comprising: receiving a first logical block address (LBA) from a host; utilizing a (lookup table) LUT to store a storage address that maps to the first LBA; utilizing the storage address to read storage data from a storing circuit; and decoding a first data sector in the storage data according to an error checking and correcting code in the storage data, wherein the first data sector at least comprises a second LBA.
 29. The data storing method of claim 28, further comprising: determining whether the first LBA is equal to the second LBA, to determine correctness of the storage data.
 30. The data storing method of claim 29, wherein the first data sector further comprises a cyclic redundancy check code, and the method comprises: determining correctness of the storage data according to the cyclic redundancy check code.
 31. The data storing method of claim 30, wherein the first data sector further comprises a data byte, and the method further comprises: combining the data byte, the second LBA and the cyclic redundancy check code into a second data sector.
 32. The data storing method of claim 31, further comprising: determining correctness of the data byte according to the cyclic redundancy check code in the second data sector; and removing the second LBA in the second data sector to output the data byte to the host. 